﻿#include<stdio.h>
#include<math.h>
int main()
{
    float a, x1, x2, b, c;
    scanf_s("%f%f%f", &a, &b, &c);
    float delta = b * b - 4 * a * c;
    if (delta > 0)
    {
        x1 = (-b + sqrt(delta)) / (2 * a);
        x2 = (-b - sqrt(delta)) / (2 * a);
        printf("方程有两个不同的实根:x1=%.2f,x2=%.2f\n", x1, x2);
    }
    else if (delta == 0)
    {
        x1 = x2 = -b / (2 * a);
        printf("方程有两个相同的实根:x1=x2=%.2f\n", x1);
    }
    else if (a == 0)
    {
        if (b != 0)
        {
            x1 = -c / b;
            printf("方程为一元一次方程，根为：x=%.2f\n", x1);
        }
        else
        {
            if (c == 0)
                printf("方程有无穷多解\n");
            else
                printf("方程无解\n");
        }
    }
    else
    {
        printf("方程无实根\n");
    }
    return 0;
}